package com.ruoyi.warehousemanager.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审核管理对象 j_check
 * 
 * @author zyx
 * @date 2023-05-15
 */
@Accessors(chain = true)
public class Check extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 审批id */
    @TableId(value = "check_id", type = IdType.AUTO)
    private Long checkId;

    /** 审批物品id */
    @Excel(name = "审批物品id")
    private Long itemId;

    /** 审批物品数量 */
    @Excel(name = "审批物品数量")
    private Long itemNum;

    /** 申请人 */
    @Excel(name = "申请人")
    private String checkApplicant;

    /** 审批人 */
    @Excel(name = "审批人")
    private String checkAuditor;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkApplicationTime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkAuditingTime;

    /** 申请类型(0:外库申请,1:物资申请) */
    @Excel(name = "申请类型(0:外库申请,1:物资申请)")
    private String applyType;

    /** 申请外库操作(0:报修,1:报废,2:收回) */
    @Excel(name = "申请外库操作(0:报修,1:报废,2:收回)")
    private String applyOperateType;

    /** 申请状态(0:审核通过,1:驳回申请) */
    @Excel(name = "申请状态(0:审核通过,1:驳回申请)")
    private String status;

    /** 驳回提示 */
    @Excel(name = "驳回提示")
    private String content;

    /** 备注 */
    @Excel(name = "备注")
    private String checkRemark;
    //仓库id
    private Long deptId;
    //物品名
    private String itemName;

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setCheckId(Long checkId) 
    {
        this.checkId = checkId;
    }

    public Long getCheckId() 
    {
        return checkId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setItemNum(Long itemNum) 
    {
        this.itemNum = itemNum;
    }

    public Long getItemNum() 
    {
        return itemNum;
    }
    public void setCheckApplicant(String checkApplicant) 
    {
        this.checkApplicant = checkApplicant;
    }

    public String getCheckApplicant() 
    {
        return checkApplicant;
    }
    public void setCheckAuditor(String checkAuditor) 
    {
        this.checkAuditor = checkAuditor;
    }

    public String getCheckAuditor() 
    {
        return checkAuditor;
    }
    public void setCheckApplicationTime(Date checkApplicationTime) 
    {
        this.checkApplicationTime = checkApplicationTime;
    }

    public Date getCheckApplicationTime() 
    {
        return checkApplicationTime;
    }
    public void setCheckAuditingTime(Date checkAuditingTime) 
    {
        this.checkAuditingTime = checkAuditingTime;
    }

    public Date getCheckAuditingTime() 
    {
        return checkAuditingTime;
    }
    public void setApplyType(String applyType) 
    {
        this.applyType = applyType;
    }

    public String getApplyType() 
    {
        return applyType;
    }
    public void setApplyOperateType(String applyOperateType) 
    {
        this.applyOperateType = applyOperateType;
    }

    public String getApplyOperateType() 
    {
        return applyOperateType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCheckRemark(String checkRemark) 
    {
        this.checkRemark = checkRemark;
    }

    public String getCheckRemark() 
    {
        return checkRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("checkId", getCheckId())
            .append("itemId", getItemId())
            .append("itemNum", getItemNum())
            .append("checkApplicant", getCheckApplicant())
            .append("checkAuditor", getCheckAuditor())
            .append("checkApplicationTime", getCheckApplicationTime())
            .append("checkAuditingTime", getCheckAuditingTime())
            .append("applyType", getApplyType())
            .append("applyOperateType", getApplyOperateType())
            .append("status", getStatus())
            .append("content", getContent())
            .append("checkRemark", getCheckRemark())
            .toString();
    }
}
